#include <stdio.h>

int main(int argc, char const *argv[])
{
    /* 猴子吃桃问题 */
    int day, x1 = 0, x2;
    day = 9;
    x2 = 1;
    while (day > 0)
    {
        x1 = (x2 + 1) * 2;
        x2 = x1;
        day -= 1;
    }

    printf("总数为%d", x1);

    return 0;
}
